import random
import time

from Sort.BubbleSort import bubbleSort
from Sort.HeapSort import heapSort
from Sort.InsertSort import insertSort
from Sort.QuickSort import quickSort
from Sort.SelectSort import selectSort

randomList = []
for i in range(0, 10000):
    randomList.append(random.randint(0, 10000))

t1 = time.time()
new1 = quickSort(randomList)
t2 = time.time()
print("快速排序耗时：{}".format(t2 - t1))

t3 = time.time()
new2 = bubbleSort(randomList)
t4 = time.time()
print("冒泡排序耗时：{}".format(t4 - t3))

t5 = time.time()
new3 = insertSort(randomList)
t6 = time.time()
print("插入排序耗时：{}".format(t6 - t5))

t7 = time.time()
new4 = selectSort(randomList)
t8 = time.time()
print("选择排序耗时：{}".format(t8 - t7))

t9 = time.time()
new5 = heapSort(randomList)
t10 = time.time()
print("堆排序耗时：{}".format(t10 - t9))

